void hello(std::vector& a) {
for (int i = 0; i < a.size() - 1; i++) {
for (int b = 0; b < a.size() - i - 1; b++) {
if (a[b] > a[b + 1]) {
std::swap(a[b], a[b + 1]);
}
}
}
}

int main() {
std::vectorstd::string t = {"m1_sorted.txt", "m2_reverse.txt", "m3_shuffle.txt"};
for (const std::string& file : t) {
std::ifstream t(file);
std::vector m;
int line;
while (t >> line) {
m.push_back(line);
}
auto q = std::chrono::steady_clock::now();
hello(m);
auto l = std::chrono::steady_clock::now();
int w = std::chrono::duration_caststd::chrono::milliseconds(l - q).count();
file = file.substr(0, file.find('.'));
std::cout << file << " " << w << " milliseconds" << std::endl;
}
return 0;
}




